<?php
/**
 * Found Exception
 * Throw this exception when the resource is temporarily at another URL.
 *
 * Official HTTP Definition:
 * The requested resource resides temporarily under a different URI. Since the
 * redirection might be altered on occasion, the client SHOULD continue to use
 * the Request-URI for future requests. This response is only cacheable if
 * indicated by a Cache-Control or Expires header field.
 *
 * The temporary URI SHOULD be given by the Location field in the response.
 * Unless the request method was HEAD, the entity of the response SHOULD contain
 * a short hypertext note with a hyperlink to the new URI(s).
 *
 * If the 302 status code is received in response to a request other than GET or
 * HEAD, the user agent MUST NOT automatically redirect the request unless it
 * can be confirmed by the user, since this might change the conditions under
 * which the request was issued. 
 *
 * @package     Visi
 * @subpackage  Exceptions
 * @author      Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright   (c) 2010 Luke Visinoni <luke.visinoni@gmail.com>
 * @version     $Id$
 * @todo        Implement this in the application. Make the app actually return
 *              the correct response headers when this is thrown.
 */
class Visi_Controller_Response_Exception_Found extends Visi_Controller_Response_Exception_Redirect {

    public $code = 302;
    
    public $message = 'Found';

}